home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d957.lha
/
PARex
/
PARexScripts
/
AutoVERS.pxs
< prev
next >
Wrap
Text File
|
1993-11-24
|
2KB
|
41 lines
; PARex v3.xx script: "PAREX:AutoVERS.pxs"
; ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
; Update: 17-Nov-93
; $VER: AutoVERS.pxs 39.012 (17.11.93) PARex v3.xx script for AutoVERS.
MODE UPDATE
REPL "{UPDATE# : }*\xA0#\xA0" BY "{}&FIXTIME:%W %d %M %Y (%H:%i:%s)&" CONTEXT MINSIZE 50 MAXSIZE 50 RIGHTFILL \xA0 TIMES 1
REPL "{REVISION# : }*\xA0#\xA0" BY "{}&FILE:ENV:pavREVISION&" CONTEXT MINSIZE 50 MAXSIZE 50 RIGHTFILL \xA0 TIMES 1
EXITPXS
MODE INIT
REPL !filename! BY &FILE:ENV:pavFILENAME& MAXSIZE 50
REPL !release! BY &FILE:ENV:pavRELEASE& MAXSIZE 50 TIMES 1
REPL !creation! BY "&FIXTIME:%W %d %M %Y (%H:%i:%s)&" MAXSIZE 50 TIMES 1
REPL !author! BY &FILE:ENV:pavAUTHOR& MAXSIZE 50 TIMES 1
REPL !copyright! BY &FILE:ENV:pavCOPYRIGHT& MAXSIZE 50 TIMES 1
REPL !translator! BY &FILE:ENV:pavTRANSLATOR& MAXSIZE 50 TIMES 1
REPL !version! BY &FILE:ENV:pavVERSION& MAXSIZE 50 TIMES 1
REPL "{UPDATE# : }!update!" BY "{}&FIXTIME:%W %d %M %Y (%H:%i:%s)&" CONTEXT MINSIZE 50 MAXSIZE 50 RIGHTFILL \xA0 TIMES 1
REPL "{REVISION# : }!revision!" BY "{}&FILE:ENV:pavREVISION&" CONTEXT MINSIZE 50 MAXSIZE 50 RIGHTFILL \xA0 TIMES 1
EXITPXS
; --Comments--
o It's important for the items that will be updated everytime AutoVers is called, keep the
same size, in order not to disturb the fileheader, since we're going to change to the
source file directly! In other words, if the header uses e.g. 500 bytes, then we must
make sure that after updating, we have the same size!
o Note that the updated lines of the fileheader always have 50 bytes. If the line should be
to short then the line is appended with a hard-space (ASCII 160), otherwise the line is
cut! That's why we use the commands MINSIZE, MAXSIZE and RIGHTFILL!
o Note also the use of CONTEXT in the UPDATE and INIT MODE with the items that have to be
updated. This is important in order to keep the right size of 50 characters!